<?php
/**
 * 图形验证码控制器
 */

namespace App\Http\Validates\Backend;

class CliCaptchaValidate
{
    static public function create()
    {
        return [
            'scene_type' => 'required|integer|between:0,2'
        ];
    }

    static public function check()
    {
        return [
            'scene_type' => 'required|integer|between:0,2',
            'info' => 'string|required_without:clicaptcha-submit-info',
            'clicaptcha-submit-info' => 'string|required_without:info',
            'unset' => 'boolean',
        ];
    }
}
